<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 2016/9/13
 * Time: 8:42
 */
$array1 = array("a" => "green", "red", "blue", "red",'wocao');
$array2 = array("b" => "green", "yellow", "red");
$array3 = array("c" => "green", "yellow3", "red3","blue");
//对比返回在 array1 中但是不在 array2 及任何其它参数数组中的值。
$result = array_diff($array1, $array2,$array3);

//Array ( [1] => wocao )
print_r($result);

